<template>
	<view class="container">
		<web-view :webview-styles="webviewStyles" :src="weburl"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				weburl: '',
				webviewStyles: {
					progress: {
						color: '#FF3333'
					}
				}
			}
		},
		onLoad(options) {
			if (options.url) {
				this.weburl = options.url
			} else {
				this.weburl = 'https://zhaoyj.work/'
			}
			// this.weburl ="https://zhaoyj.work/weixin/s/PFkKR1KpIm7wc2ZiKsm63A"
			let title = options.title
			console.log(this.weburl, title)
			uni.setNavigationBarTitle({
				title
			})
		},
		methods: {

		}
	}
</script>

<style>

</style>
